<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员信息添加详细页</title>
<!----导入bootstrap的外部css文件---->
<link href="${basePath}bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">
<link href="${basePath}bootstrap-3.3.7-dist/css/style.css"
	rel="stylesheet">
<link href="${basePath}bootstrap-3.3.7-dist/css/bootstrap-theme.min.css"
	rel="stylesheet" />
<!----导入bootstrap的依赖的jquery文件---->
<script src="${basePath}bootstrap-3.3.7-dist/js/jquery.min.js"></script>
<!----导入bootstrap的外部javascript文件---->
<script src="${basePath}bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<style>
/*主体div*/
#container {
	/*相对于body，主体框架居中*/
	margin: 0px auto;
	width: 1000px;
}
</style>
</head>

<body>
	<div id="container">
		<div class="bs-example" data-example-id="hoverable-table">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>序号</th>
						<th>姓名</th>
						<th>邮箱</th>
						<th>电话</th>
						<th>出生日期</th>
						<th>头像</th>
						<th>修改</th>
						<th>删除</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${sessionScope.lstAdmins}" var="eachAdmin"
						varStatus="st">
						<tr>
							<th scope="row">${st.index+1  }</th>
							<td>${eachAdmin.adminName  }</td>
							<th>${eachAdmin.adminMail }</th>
							<th>${eachAdmin.adminTel }</th>
							<th>${eachAdmin.adminBirthday }</th>
							<th><img alt="头像" src="${basePath}${eachAdmin.adminImg}"> </th>
							<th><a href="${basePath}AdminInfoModifyAndDeleteServlet?aid=${eachAdmin.adminId}&op=0">修改</a></th>
							<th><a href="${basePath}AdminInfoModifyAndDeleteServlet?aid=${eachAdmin.adminId}&op=1" onclick="return confirm('你确认删除该用户名为[${eachAdmin.adminName}]记录么?')">删除</a></th>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
</body>

</html>